package com.iscas.lndicatormonitor.service;

import com.iscas.lndicatormonitor.common.CustomResult;
import com.iscas.lndicatormonitor.common.Result;
import com.iscas.lndicatormonitor.domain.Users;
import com.iscas.lndicatormonitor.dto.UsersDTO;
import org.apache.catalina.User;

import java.util.List;

public interface UsersService {
    int usersInsert(UsersDTO usersDTO) throws Exception;

    Users userLogin(UsersDTO usersDTO) throws Exception;

    String getRealNameById(int userId) throws Exception;

    Users selectByUserName(String userName) throws Exception;
    List<UsersDTO> getAllUsersDto() throws Exception;

    List<Users> getAllUsers() throws  Exception;

    int deleteById(int userId) throws  Exception;

    int updateUser(UsersDTO usersDTO) throws  Exception;

    Boolean isHaveCommonUser(String userName);

    int updatePwd(UsersDTO usersDTO) throws  Exception;
}
